package com.hucheng.order.mapper;

import com.hucheng.order.entity.OrderInfoDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 凉白开不加冰
 * @Version: 0.0.1V
 * @Date: 2019-07-17
 * @Description: 总订单
 **/
@Mapper
public interface OrderInfoMapper {
    OrderInfoDO getOrderInfoByOutTradeNo(String outTradeNo);

    Integer insert(OrderInfoDO orderInfoDO);

    Integer update(@Param("outTradeNo") String outTradeNo, @Param("tradeNo") String tradeNo);

    List<OrderInfoDO> listsByStatus();

}
